(()=>{(D=r=r||{})[D.Error=0]="Error",D[D.Warning=1]="Warning",D[D.Debug=2]="Debug";var r,L=["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" "),d=(o.Log=function(e,t){var n;o.LOGLEVEL{try{return e.localStorage}catch(e){}})(e||window),this.localStorageEnabled=this.checkLocalStorage(t)}g.prototype.checkTcfPurposeOne=function(e){return e&&null!=e&&e.gdprConsent&&e.gdprConsent.purposes?!0===e.gdprConsent.purposes[1]:"BR"==this.USER_COUNTRY_MACRO||!x(this.USER_COUNTRY_MACRO)},g.prototype.setCookie=function(e,t,n,o,r){void 0===r&&(r=!1);var i=o||document,s=i.location.hostname,a=new Date,c=(a.setTime(a.getTime()+60*n*60*1e3),"expires="+a.toUTCString());if(r)for(var u=s.split("."),p=1;p{var t;try{return null!=(t=e.top)&&t.location.toString(),1}catch(e){}})(e)}function ne(e){if(void 0===e&&(e=window),!te(window))for(var t=0;t<10;t++){if(void 0!==e.googletag)return e.googletag;if(e===e.top)break;e=e.parent}return window.googletag}function oe(e){var t=ne();t||(t={},window.googletag=t),t.cmd=t.cmd||[],t.cmd.push(e)}ie.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())};var b,re=ie;function ie(){}(D=b=b||{})[D.Unspecified=0]="Unspecified",D[D.AMP=1]="AMP",R.prototype.buildUrl=function(e,t,n,o,r){void 0===n&&(n=b.Unspecified);var i=R.CRITEO_BIDDER_URL+this.getHandlerPath(e,t);return i+="?ptv=162",!0===t.isAdBlocked&&(i+="&abp=1"),i=this.appendCommonParameters(i,e,o,r),i=(i+=t.isOptOut?"&optout=1":"")+(t.bundle?"&bundle="+t.bundle:""),n!==b.Unspecified&&(i+="&im="+n),i=(i+="&cb="+String(re.generateCacheBuster()))+t.getContextFlags()},R.prototype.buildErrorUrl=function(){return R.CRITEO_BIDDER_URL+R.CRITEO_ERROR_HANDLER},R.prototype.buildCsmEventsUrl=function(){return R.CRITEO_BIDDER_URL+R.CRITEO_CSM_EVENTS_HANDLER},R.prototype.buildCsmCountersUrl=function(){return R.CRITEO_BIDDER_URL+R.CRITEO_CSM_COUNTERS_HANDLER},R.prototype.appendCommonParameters=function(e,t,n,o){return e+="&profileId="+String(t),void 0!==n&&(e+="&av="+String(n)),void 0!==o&&(e+="&wv="+encodeURIComponent(o)),e},R.prototype.getHandlerPath=function(e,t){var n;if(this.auditMode)return R.CRITEO_BIDDER_AUDIT_HANDLER;if(334==e&&void 0!==t.slotsExt)for(var o in t.slotsExt){o=t.slotsExt[o];if(void 0!==(null==(n=null==o?void 0:o.data)?void 0:n.gtin))return R.CRITEO_COMMERCE_EXPERIENCE_3_HANDLER;if(void 0!==(null==(n=null==o?void 0:o.data)?void 0:n.keyword))return R.CRITEO_COMMERCE_EXPERIENCE_4_HANDLER}return R.CRITEO_BIDDER_HANDLER},R.CRITEO_BIDDER_URL="https://bidder.criteo.com/",R.CRITEO_BIDDER_HANDLER="cdb",R.CRITEO_COMMERCE_EXPERIENCE_3_HANDLER="experiences/2023-10/dynamic-buttons",R.CRITEO_COMMERCE_EXPERIENCE_4_HANDLER="experiences/2023-10/product-recommendation",R.CRITEO_CSM_EVENTS_HANDLER="csm/events",R.CRITEO_CSM_COUNTERS_HANDLER="csm/counters",R.CRITEO_ERROR_HANDLER="error",R.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit";var se=R;function R(e){this.auditMode=e=void 0===e?!1:e}ae.prototype.sendEventsToBeacon=function(e,t){navigator.sendBeacon&&e&&navigator.sendBeacon(t,JSON.stringify(e))};var D=ae;function ae(){this.urlBuilder=new se}A.CreateRunning=function(){var e=new A;return e.start(),e},A.CreateWithStartTime=function(e){var t=new A(!1);return t.startTime=e,t},A.TimeSincePageLoad=function(){if(window.performance){if(window.performance.now)return window.performance.now();if(window.performance.timing&&window.performance.timing.navigationStart)return(new Date).getTime()-performance.timing.navigationStart}return 0},A.prototype.start=function(){this.startTime=this.now()},A.prototype.elapsed=function(){return this.now()-this.startTime};var O=A;function A(e){(e=void 0===e?!0:e)&&window.performance&&window.performance.now?this.now=window.performance.now.bind(window.performance):Date.now?this.now=Date.now:this.now=function(){return(new Date).getTime()}}C(U,ce=D),U.prototype.sendSetTagLoadedTime=function(){this.sendEvents({eventId:"TagLoaded",elapsed:O.TimeSincePageLoad()})},U.prototype.sendSetEspPromiseTime=function(){this.sendEvents({eventId:"SetEspPromise",elapsed:O.TimeSincePageLoad()})},U.prototype.sendReturnEspPromiseToGptTime=function(){this.sendEvents({eventId:"ReturnEspPromiseToGpt",elapsed:O.TimeSincePageLoad()})},U.prototype.sendResolveEspPromiseTime=function(){this.sendEvents({eventId:"ResolveEspPromise",elapsed:O.TimeSincePageLoad()})},U.prototype.sendEvents=function(e){e={events:[e],domain:this.topFrame.location.hostname,requestId:this.requestId};this.isEligibleForCsmEvents&&this.sendEventsToBeacon(e,this.urlBuilder.buildCsmEventsUrl())};var ce,ue=U;function U(e,t){var n=ce.call(this)||this;return n.topFrame=e,n.isEligibleForCsmEvents=t,n.requestId=crypto.randomUUID(),n}function M(e,a,t,n){void 0===e&&(e=null==(o=window.Criteo_identitytag_162||window.Criteo)?void 0:o.config),void 0===n&&(n=(new Date).getUTCMilliseconds()),this.sessionRandomId=n;var c=N.getHighestAccessibleWindow(window),u=N.getHighestAccessibleUrl(c),p=new ue(c.topFrame,this.isEligibleForCsmEvents());p.sendSetTagLoadedTime();var o,l="1"===(e=>{var t={};if(1<(e=e.split("?")).length)for(var n=0,o=e[1].split("&");n{try{e.call(t,n,o)}catch(e){return e}})(r,o,function(e){n||(n=!0,(o!==e?S:I)(t,e))},function(e){n||(n=!0,b(t,e))},t._label);!n&&e&&(n=!0,b(t,e))},e)}function P(e,t,n){var o,r;t.constructor===e.constructor&&n===v&&t.constructor.resolve===C?(o=e,(r=t)._state===E?I(o,r._result):r._state===T?b(o,r._result):R(r,void 0,function(e){return S(o,e)},function(e){return b(o,e)})):void 0!==n&&c(n)?N(e,t,n):I(e,t)}function S(t,e){if(t===e)b(t,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof e,null===e||"object"!=n&&"function"!=n)I(t,e);else{n=void 0;try{n=e.then}catch(e){return void b(t,e)}P(t,e,n)}var n}function H(e){e._onerror&&e._onerror(e._result),D(e)}function I(e,t){e._state===w&&(e._result=t,e._state=E,0!==e._subscribers.length)&&s(D,e)}function b(e,t){e._state===w&&(e._state=T,e._result=t,s(H,e))}function R(e,t,n,o){var r=e._subscribers,i=r.length;e._onerror=null,r[i]=t,r[i+E]=n,r[i+T]=o,0===i&&e._state&&s(D,e)}function D(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var o,r=void 0,i=e._result,s=0;s